//
//  ILView.m
//  HeartTravel
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 tantan. All rights reserved.
//

#import "ILView.h"

@implementation ILView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat width = frame.size.width / 9;
        CGFloat height = frame.size.height;
        _lookImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, width, height)];
        _lookImageView.image = [UIImage imageNamed:@"关注32"];
        _lookLabel = [[UILabel alloc]initWithFrame:CGRectMake(width, 0, 2 * width, height)];
        _lookLabel.font = [UIFont systemFontOfSize:11];
        _lookLabel.textColor = [UIColor whiteColor];
        
        _likeImageView = [[UIImageView alloc]initWithFrame:CGRectMake(3 * width, 0, width, height)];
        _likeImageView.image = [UIImage imageNamed:@"关注"];
        
        _likeLabel = [[UILabel alloc]initWithFrame:CGRectMake(4*width, 0, width * 2, height)];
        _likeLabel.font = [UIFont systemFontOfSize:11];
        _likeLabel.textColor = [UIColor whiteColor];

        _commentImageView = [[UIImageView alloc]initWithFrame:CGRectMake(6*width, 0, width, height)];
        [_commentImageView setImage:[UIImage imageNamed:@"评论"]];
        
        _commentLabel = [[UILabel alloc]initWithFrame:CGRectMake(7*width, 0, 2*width, height)];
        _commentLabel.textColor = [UIColor whiteColor];
        _commentLabel.font = [UIFont systemFontOfSize:11];
        
        [self addSubview:_lookImageView];
        [self addSubview:_lookLabel];
        [self addSubview:_likeImageView];
        [self addSubview:_likeLabel];
        [self addSubview:_commentImageView];
        [self addSubview:_commentLabel];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
